package com.liyuhan.onlinetaxibackground.Repository;

import com.liyuhan.onlinetaxibackground.POJO.BasicOrder;
import com.liyuhan.onlinetaxibackground.POJO.Driver;
import com.liyuhan.onlinetaxibackground.POJO.OrderBlackList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;


@Repository
public interface OrderBlackListRepository extends JpaRepository<OrderBlackList, Integer> {
    Optional<OrderBlackList> findOrderBlackListsByDriverAndOrder(Driver driver, BasicOrder order);
}
